package com.youdianda.mapper;

import com.youdianda.dto.SysConfigFgxDTO;
import com.youdianda.entity.SysConfig;
import com.youdianda.entity.SysFgxConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface SysConfigFgxMapper {

    @Select("select * from youdianda.sys_config")
    List<SysConfig> allConfigList();

    @Update("update youdianda.sys_config set attr_value=#{attr_value} where id=#{id} and attr_key=#{attr_key}")
    void update(SysConfigFgxDTO sysConfigFgxDTO);
}
